import ajax from './public'

export function getUserInfo(params) { //用户信息接口
	return ajax.fetchGet('/user/getUserInfo', params)
}

export function logOut(params) { //用户登出接口
	return ajax.fetchGet('/user/logout', params)
}

export function getUserAddressList(params) { //用户收货地址列表接口
	return ajax.fetchGet('/user/getUserAddressList', params)
}

export function getAreaInfo(params) { //获取地区信息接口
	return ajax.fetchGet('/user/getAreaInfo', params)
}

export function addUserAddress(params) { //用户添加收货地址接口
	return ajax.fetchPost('/user/addUserAddress', params)
}

export function editUserAddress(params) { //用户编辑收货地址接口
	return ajax.fetchPost('/user/editUserAddress', params)
}

export function getUserAddressDetail(params) { //用户收货地址详情接口
	return ajax.fetchGet('/user/getUserAddressDetail', params)
}

export function setDefaultAddress(params) { //用户设置默认收货地址接口
	return ajax.fetchGet('/user/setDefaultAddress', params)
}

export function deleteUserAddress(params) { //用户删除收货地址接口
	return ajax.fetchPost('/user/deleteUserAddress', params)
}

export function getNotices(params) { //用户通知中心接口
	return ajax.fetchGet('/user/getNotices', params)
}

export function getCollectionList(params) { //用户收藏列表接口
	return ajax.fetchGet('/user/getCollectionList', params)
}

export function addCollection(params) { //添加收藏接口
	return ajax.fetchPost('/user/addCollection', params)
}

export function delCollection(params) { //用户取消收藏接口
	return ajax.fetchPost('/user/delCollection', params)
}

export function checkCollection(params) { //判断用户是否收藏商品或者店铺接口
	return ajax.fetchPost('/user/checkCollection', params)
}
